home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / CLOCKMOD.ZIP / ANIM3.POV < prev    next >
Encoding:
Text File  |  1997-06-24  |  1.3 KB  |  42 lines

  1. // CLOCK MODIFIER: EXAMPLE ANIMATION 3
  2. // ***********************************
  3. // This animation shows how the modified clock can be used to
  4. // alter the pigment, scaling, and translation of various
  5. // objects.  It also shows how the clock_start and clock_finish
  6. // options can be used.
  7.  
  8. // CAMERA AND LIGHTS
  9.    camera {location <0, 0, -20> look_at <0, 0, 0> angle 40}
  10.    light_source {<50, 50, -50> rgb 1}
  11.  
  12. // CENTER SPHERE
  13.    sphere {<0, 0, 0>, 1.5
  14.  
  15. // CHANGE COLOUR FROM RED TO YELLOW
  16.    #declare clock_type = "S-Curve" #include "ClockMod.inc"
  17.    pigment {rgb <1, 0, 0> + <0, 1, 0> * mclock}
  18.    finish {phong .5}
  19.  
  20. // SCALE USING JUMP CLOCK
  21.    #declare clock_type = "Jump" #declare clock_repeat = 3
  22.    #include "ClockMod.inc"
  23.    scale 1 + mclock}
  24.  
  25. // ROD SHAPE
  26.    #declare Rod = cylinder {0, y * 10, 1 pigment {rgb .5} finish {phong .5}}
  27.  
  28. // LEFT ROD
  29.    object {Rod
  30.       #declare clock_type = "Recoil"
  31.       #declare clock_start = 0 #declare clock_finish = .5
  32.       #declare clock_repeat = 1
  33.       #include "ClockMod.inc"
  34.       translate <-5, 0, 0> + y * 3 * mclock}
  35.  
  36. // RIGHT ROD
  37.    object {Rod scale <1, -1, 1>
  38.       #declare clock_type = "Recoil"
  39.       #declare clock_start = .5 #declare clock_finish = 1
  40.       #include "ClockMod.inc"
  41.       translate <5, 0, 0> - y * 3 * mclock}
  42.